<script>
  export default {
    name: 'my-text',
    props: {
      label: {
        type: String,
        default: ''
      },
      value: {
        ype: String,
        default: ''
      }
    }
  }
</script>
<template>
  <view class="text-wrap">
    <text class="label">{{ label }}</text>
    <text class="value">{{ value }}</text>
  </view>
</template>
<style lang="scss" scoped>
  .text-wrap {
    display: flex;
    gap: var(--my-text_gap, 6rpx);
    align-items: flex-end;
    .label {
      font-size: var(--my-text-label_size, 26rpx);
      color: var(--my-text-label_color, #a0a0a0);
      font-weight: var(--my-text-label_weight, 400);
    }
    .value {
      font-size: var(--my-text-value_size, 28rpx);
      color: var(--my-text-value_color, #171616);
      font-weight: var(--my-text-value_weight, 700);
    }
  }
</style>